package com.yuezhi.acl.service;

import com.yuezhi.acl.entity.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author boys
 * @since 2020-12-16
 */
public interface SysRoleService extends IService<SysRole> {

    //根据用户获取角色数据
    Map<String, Object> findRoleByUserId(String userId);

    //根据用户分配角色
    void assignRolesByUser(String userId, String[] roleId);

    List<SysRole> selectRoleByUserId(String userid);
}
